package com.youfan.control;

import com.youfan.entity.Test;
import com.youfan.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController()
@RequestMapping("/test")
public class TestController {
    @Autowired
    TestService testService;

    @RequestMapping(method = RequestMethod.POST,value="insert")
    public void insert(Test test)
    {
        testService.insert(test);
    }
}
